<ng-container *ngFor="let star of stars;let i = index">
  <ng-container *ngIf="edit === true ; else elseTemplate">
    <img *ngIf="star" [ngStyle]="valueCssStyle | styleFilter" class="img-star-edit" [src]="star_highLight" onerror="this.src='assets/icon/detail_icon_star@3x.png'" appDebounceClick (debounceClick)="onClick(i+1)">
    <img *ngIf="!star" [ngStyle]="valueCssStyle | styleFilter" class="img-star-edit" [src]="star_gray" onerror="this.src='assets/icon/detail_icon_star_gray@3x.png'" appDebounceClick (debounceClick)="onClick(i+1)" >
  </ng-container>
  <ng-template #elseTemplate>
    <img *ngIf="star" [ngStyle]="valueCssStyle | styleFilter" class="img-star" [src]="star_highLight" onerror="this.src='assets/icon/detail_icon_star@3x.png'">
    <img *ngIf="!star" [ngStyle]="valueCssStyle | styleFilter" class="img-star" [src]="star_gray" onerror="this.src='assets/icon/detail_icon_star_gray@3x.png'"  >   
  </ng-template>
  
 

</ng-container>

